<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- 刷新当前页面 -->
<meta http-equiv="refresh" content="2">
</head>

<body>
	<ul>
		<%
			//获取appliation作用域中的内容
			if (application.getAttribute("userList") != null) {
				//如果名字为 userlist 的并且不为空，遍历显示用户名字
				List<String> ulist = (List<String>) application
						.getAttribute("userList");
				if (ulist.size() > 0) {
					for (String u : ulist) {
		%>
		<li><%=u%></li>
		<%
					}
				}
			}
		%>
	</ul>
</body>
</html>